#ifndef X_4_H
#define X_4_H

#include "common.h"

template <AllegroVersion version>
struct x04
{
    uint32_t t;
    uint32_t k;
    uint32_t next;

    // Points to `x1B`
    uint32_t ptr1;

    // Points to `x05`
    uint32_t ptr2;
#if __cplusplus >= 202002L
    COND_FIELD(version >= A_174, uint32_t, un1);
#endif
    uint32_t TAIL;
    operator x04<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_174};
};

#if __cplusplus < 202002L
template <> struct x04<A_174>
{
    uint32_t t;
    uint32_t k;
    uint32_t next;

    // Points to `x1B`
    uint32_t ptr1;

    // Points to `x05`
    uint32_t ptr2;

    uint32_t un1;

    uint32_t TAIL;
    operator x04<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_174};
};
#endif

#endif // X_4_H
